﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for UserBUS
/// </summary>
public class UserBUS
{
    public UserDTO Login(UserDTO userDTO)
    {
        UserDAO userDAO = new UserDAO();
        return userDAO.Login(userDTO);
    }
    public int CheckUserNameAndEmailExist(UserDTO userDTO)
    {
        UserDAO userDAO = new UserDAO();
        return userDAO.CheckUserNameAndEmailExist(userDTO);
    }
    public bool Register(UserDTO userDTO)
    {
        UserDAO userDAO = new UserDAO();
        return userDAO.Register(userDTO);
    }
}